﻿using System.Collections.Generic;
using System.Data;

namespace CommonLibrary.DataTableHelper
{
    public static class DataTableToModel
    {
        public static T AdapterTo<T>(this DataTable dt) where T : new()
        {
            var result = DatableToList<T>.ConverToModel(dt);
            return result;
        }
        public static List<T> AdapterToList<T>(this DataTable dt) where T : new()
        {
            var result = DatableToList<T>.ConvertToList(dt);
            return result;
        }
    }
}
